package com.ruoyi.ucar.config;


import com.obs.services.ObsClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



@Configuration
public class ObsConfig {

    @Value("${ucar.obs.endpoint}")
    private String endpoint;
    @Value("${ucar.obs.accessKey}")
    private String accessKey;
    @Value("${ucar.obs.secretKey}")
    private String secretKey;



    @Bean
    public ObsClient obsClient() {
        return new ObsClient(accessKey, secretKey, endpoint);
    }

}
